﻿namespace DimensionsHelper.Client.WinUi.ViewModels;

public enum QueryExpressionType
{
    // 内置函数
    ContainsAny,
    ContainsAll,
    ContainsSome,
    Len,
    AnswerCount,

    // 逻辑操作符
    And,
    Or,
    Xor,

    // 计算操作符
    Plus,
    Minus,
    Start,
    Devide,

    // 比较操作符
    GreaterThan,
    GreaterThanEqual,
    Equal,
    LessThan,
    LessThanEqual
}

public partial class QueryExpressionViewModel : ObservableObject
{
    [ObservableProperty]
    public partial QueryExpressionType Type
    {
        get;
        set;
    }


    [ObservableProperty]
    public partial bool Reversed
    {
        get;
        set;
    }


    [ObservableProperty]
    public partial string ScriptText { get; set; } = string.Empty;
}